package com.iretailer.report.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

/**
 * @Auther xjw
 * @Date 2019/1/19 1719
 * @Description
 */
@TableName(value = "t_holidays")
public class Holidays {
    @JSONField(name = "Id")
    @TableId(value = "Id", type = IdType.UUID)
    private String id;

    @JSONField(name = "Name")
    @TableField(value = "Name")
    private String name;

    @JSONField(name = "Holiday")
    @TableField(value = "Holiday")
    private LocalDateTime holiday = LocalDateTime.now();

    @JSONField(name = "DayType")
    @TableField(value = "DayType")
    private String dayType;

    @JSONField(name = "IsWorkday")
    @TableField(value = "IsWorkday")
    private Integer isWorkday;

    @JSONField(name = "DayTypeName")
    @TableField(value = "DayTypeName")
    private String dayTypeName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDateTime getHoliday() {
        return holiday;
    }

    public void setHoliday(LocalDateTime holiday) {
        this.holiday = holiday;
    }

    public String getDayType() {
        return dayType;
    }

    public void setDayType(String dayType) {
        this.dayType = dayType;
    }

    public Integer getIsWorkday() {
        return isWorkday;
    }

    public void setIsWorkday(Integer isWorkday) {
        this.isWorkday = isWorkday;
    }

    public String getDayTypeName() {
        return dayTypeName;
    }

    public void setDayTypeName(String dayTypeName) {
        this.dayTypeName = dayTypeName;
    }
}
